package game.items;

import edu.monash.fit2099.engine.actions.ActionList;
import edu.monash.fit2099.engine.items.Item;
import edu.monash.fit2099.engine.positions.Location;
import game.actions.SleepAction;

/**
 * Bedroll must be dropped on the ground to sleep.
 */
public class Bedroll extends Item {

    public Bedroll() {
        super("Bedroll", '=', true);
    }

    /**
     * When on the ground, provide a SleepAction to any actor at this location.
     */
    @Override
    public ActionList allowableActions(Location location) {
        ActionList list = new ActionList();
        list.add(new SleepAction());
        return list;
    }
}
